/**
 * A class that will be added to a list in the InputManager.  This object allows
 * a specifically named collection of event mappings to keys.
 * @author ggere
 *
 */
public class InputCollection {
	private String name;
	private int eventMap[];

	public InputCollection(String name) {
		this.name = name;
		eventMap = new int[256];
	}

	public void map(int event, int key) {
		eventMap[event] = key;
	}

	public int get(int event) {
		return eventMap[event];
	}

	public void clear(int event) {
		eventMap[event] = -999;
	}

	public String getName() {
		return name;
	}
}  